﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Contacts.Search" %>
<script>
var M0006="<%=GetText("M0006")%>";
var C0003="<%=GetText("C0003") %>";
var C0005="<%=GetText("C0005")%>";
var C0007="<%=GetText("C0007")%>";
var C0008="<%=GetText("C0008") %>";
var C0009="<%=GetText("C0009") %>";
var C0010="<%=GetText("C0010") %>";
var C0011="<%=GetText("C0011") %>";
var C0024="<%=GetText("C0024") %>";
var C0027="<%=GetText("C0027") %>";
var C0029="<%=GetText("C0029") %>";
var C0066="<%=GetText("C0066") %>";
var C0068="<%=GetText("C0068") %>";
var CT091="<%=GetText("CT091") %>";

var CT000="<%=GetText("CT000") %>";
var CT001="<%=GetText("CT001") %>";
var CT002="<%=GetText("CT002") %>";
var CT003="<%=GetText("CT003") %>";
var CT004="<%=GetText("CT004") %>";
var CT005="<%=GetText("CT005") %>";
var CT006="<%=GetText("CT006") %>";
var CT007="<%=GetText("CT007") %>";
var CT009="<%=GetText("CT009") %>";
var CT011="<%=GetText("CT011") %>";
var CT012="<%=GetText("CT012") %>";
var CT066="<%=GetText("CT066") %>";

var gNoCount = "<%=GetText("CT055")%>";
var gCounts = "<%=GetText("CT010")%>"
var gCounts5 = "<%=GetText("CT054")%>";
var gMale = "<%=GetText("C0012")%>";
var gFemale = "<%=GetText("C0013")%>";
var gOnlineN = "<%=GetText("C0038")%>";
var gTypeD = "<%=GetText("CT008")%>";
var gDateFormat = "<%=GetText("C0033")%>";
var gStrDate = "<%=GetText("C0032")%>";
</script>
<div class="common">
	<div class="submenunew">
		<div class="submenu_l">
				<div class="unsub">
					<div class="unsubsel">
					<a href="/contacts/search.htm"><span>
				<%if(Page.Request.RawUrl.ToLower().IndexOf("/contacts/search.htm")>-1){%>
					<strong><%=GetText("C0068")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				<%} else{%>
					<%=GetText("C0068")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				<%}%>
				</div>
				<div class="unsub">
					<div class="unsubsel">
					<a href="/contacts/invite.htm"><span>
				<%if(Page.Request.RawUrl.ToLower().IndexOf("/contacts/invite.htm")>-1){%>
					<strong><%=GetText("CT016")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				<%} else{%>
					<%=GetText("CT016")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				<%}%>
				</div>
				<div class="cleartm"></div>
		</div>
		<div class="submenu_r"><input id="textSear2" type="text" class="common_search" onclick="SearBrowseDocs()" value="$CT008$" /><a href="#" id="bttSear2" class="buttonimg" onclick="SearchDocs()" ><img src="/Images/icon_search19.gif" border="0" class="img" /></a></div>
		<div class="cleartm"></div>
	</div>
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
					<div class="margin10" align="center">
					<script type="text/javascript">
					  GA_googleFillSlot("all_pages_top728x90");
					</script>
					</div>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("CT090")%></h1>
							</div>
							<div class="search_fliter" id="Content828ID">
											<table border="0" cellspacing="0" cellpadding="5">
												<tr>
													<td style="padding-right:5px"><strong>$CT001$</strong><br /><select id="selSpeakL" class="common130"> <option>$C0027$</option> <%=GetLanguageSelect(speakValc)%> </select></td>
													<td style="padding-right:5px"><strong>$CT002$</strong><br /><select id="selLearnL" class="common130"> <option>$C0027$</option> <%=GetLanguageSelect(learnValc)%> </select></td>
													<td style="padding-right:5px"><strong>$C0003$</strong><br /><select id="selCountry" class="common100"> <option>$C0029$</option> <%=GetCountrySelect(nationValc)%> </select></td>
													<td style="padding-right:5px"><strong>$C0010$</strong><br /><select id="selAge" class="common100">
															<option value="0-200">$C0024$</option>
															<option value="0-18">$CT003$</option>
															<option value="18-25">18-25</option>
															<option value="26-35">26-35</option>
															<option value="36-200">35+</option>
														</select>
													</td>
													<td><strong>$C0011$</strong><br /><select id="selGender" class="common100">
															<option value="">$C0024$</option>
															<option value="1">$C0012$</option>
															<option value="0">$C0013$</option>
														</select>
													</td>
												</tr>
												<tr>
													<td colspan="5"><div class="floatl"><a href="#" id="bttSear" class="specbtn" onclick="SearBrowseDocs()"><span>&nbsp;&nbsp;&nbsp;$C0068$&nbsp;&nbsp;&nbsp;</span></a></div><div class="floatl">&nbsp;&nbsp;&nbsp;&nbsp;<input name="Input2" type="checkbox" value="" /> $CT091$&nbsp;&nbsp;<input id="iconCheck" type="checkbox" <%=(isAvatarValc==1?"checked=\"checked\"":"")%>/> $CT004$</div><div class="clear"></div></td>
												</tr>
											</table>
							</div>
							<div class="submenuN_button"></div>
						</div>
					</div>
				</div>
				<script>
					var tab_select = document.getElementById("tab_select").innerHTML;
					tab_select = tab_select.replace(/\$C0066\$/gi,C0066).replace(/\$C0068\$/gi,C0068);
					tab_select = tab_select.replace(/\$CT011\$/gi,CT011).replace(/\$CT012\$/gi,CT012);
					document.getElementById("tab_select").innerHTML = tab_select;
					tab_select=null;
				</script>
				<div class="Center9001n">
					<div class="center9001right">
						<div class="Center9001Content">
						<div class="friends_area">
							<script>
								var gContent828ID = document.getElementById("Content828ID").innerHTML;
								gContent828ID = gContent828ID.replace(/\$C0003\$/gi,C0003).replace(/\$C0008\$/gi,C0008).replace(/\$C0010\$/gi,C0010).replace(/\$C0011\$/gi,C0011).replace(/\$C0012\$/gi,gMale).replace(/\$C0013\$/gi,gFemale).replace(/\$C0024\$/gi,C0024);
								gContent828ID = gContent828ID.replace(/\$C0027\$/gi,C0027).replace(/\$C0029\$/gi,C0029).replace(/\$C0066\$/gi,C0066).replace(/\$C0068\$/gi,C0068).replace(/\$CT001\$/gi,CT001).replace(/\$CT002\$/gi,CT002).replace(/\$CT003\$/gi,CT003).replace(/\$CT091\$/gi,CT091);
								gContent828ID = gContent828ID.replace(/\$CT004\$/gi,CT004).replace(/\$CT005\$/gi,CT005).replace(/\$CT006\$/gi,CT006).replace(/\$CT007\$/gi,CT007).replace(/\$CT008\$/gi,gTypeD).replace(/\$CT009\$/gi,CT009).replace(/\$CT011\$/gi,CT011);
								gContent828ID = gContent828ID.replace(/\$CT012\$/gi,CT012).replace(/\$CT066\$/gi,CT066);
								document.getElementById("Content828ID").innerHTML = gContent828ID;
								gContent828ID=null;
							</script>
						    <div class="content628" style="margin-bottom:20px">
								<div id="SearCount" class="spectitleT"><%=(SearchCount == 0 ? GetText("CT055") : (SearchCount > 499 ? GetText("CT054") : string.Format(GetText("CT010"), SearchCount)))%></div>
					        </div>
							<!--Search result-->
							<div id="memberList" class="content628 ">
							    <asp:Repeater ID="uList" runat="server">
                                    <ItemTemplate>

										<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;padding-bottom:10px;border-bottom:1px #e1e1e1 solid;overflow:hidden">
										  <tr>
											<td width="120" valign="top"><div class="Pic90"><a class="Photo_90" href="/<%#Eval("MemberNo") %>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></td>
											<td width="200" valign="top"><div class="Blue14BU"><a href="/<%#Eval("MemberNo") %>.htm"><%#HttpUtility.HtmlEncode(Eval("NickName").ToString())%></a></div>
											<div><%#(bool)Eval("IsShowBod") && Eval("Age").ToString() !=""? Eval("Age") + ", " : ""%><%#GetGenderText(Eval("Gender").ToString()) != "" ? GetGenderText(Eval("Gender").ToString())+",": ""%> $C0003$ <%#GetCountryText(Eval("Nationality").ToString())%></div>
											<div class="Orange10"><script>document.write(<%#(bool)Eval("Online") == true ? "gOnlineN" : ""%>);</script>

											</div>
											</td>
											<td valign="top">
												$C0005$: <strong><%#GetLanguageText(Eval("MotherTongue").ToString())%><img src="/Images/Level5.gif" /><%#(Eval("MotherTongue2").ToString().Trim()=="")?"":", "+(GetLanguageText(Eval("MotherTongue2").ToString())+Eval("motherTongue2Level","<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("MotherTongue3").ToString().Trim() == "") ? "" : ", "+(GetLanguageText(Eval("MotherTongue3").ToString()) + Eval("motherTongue3Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("MotherTongue4").ToString().Trim() == "") ? "" : ", "+(GetLanguageText(Eval("MotherTongue4").ToString()) + Eval("motherTongue4Level", "<img src=\"/Images/Level{0}.gif\" />"))%></strong>
                                                <br />$C0007$: <strong><%#(GetLanguageText(Eval("TargetLanguage").ToString().Trim())== "" ? "" :Eval("TargetLanguage").ToString() + Eval("TargetLanguageLevel", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("TargetLanguage2").ToString().Trim()== "") ? "" : ", "+(GetLanguageText(Eval("TargetLanguage2").ToString()) + Eval("TargetLanguage2Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("TargetLanguage3").ToString().Trim()== "") ? "" : ", "+(GetLanguageText(Eval("TargetLanguage3").ToString()) + Eval("TargetLanguage3Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("TargetLanguage4").ToString().Trim()== "") ? "" : ", "+(GetLanguageText(Eval("TargetLanguage4").ToString()) + Eval("TargetLanguage4Level", "<img src=\"/Images/Level{0}.gif\" />"))%></strong>                                            
                                                <br /><div><%#(Eval("Avatar_title").ToString() == "" ? "" : "<div class='thoughtbox'><div><div><div><div>" + HttpUtility.HtmlEncode(Eval("Avatar_title").ToString()) + "</div></div></div></div></div>")%></div>
                                                </td>
										</tr>
										</table>
							        </ItemTemplate>
                                </asp:Repeater>      
							</div>
							<div class="clear"></div>
							<script>
                                document.getElementById("memberList").innerHTML = document.getElementById("memberList").innerHTML.replace(/\$C0005\$/gi,C0005).replace(/\$C0007\$/gi,C0007).replace(/\$C0009\$/gi,C0009).replace(/\$C0003\$/gi,C0003);
							</script>
							<div id="divPage" class="page_num DisplayNone"></div>
						</div>
						</div>
					</div>					
					<div class="center9001left">
						<div id="ad_site" class="margin20T">
						<script type="text/javascript">
						  GA_googleFillSlot("all_pages_right160x600");
						</script>
						</div>
					</div>
					<div class="clear"></div>
				</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<div id="SearCountItem" style="display: none;">$SearchCount$</div>
<div id="MemberTemple" style="display: none;">   
	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:30px;overflow:hidden">
	  <tr>
		<td width="110" valign="top"><div class="Pic90"><a class="photo_90" href="/$MemberNo$.htm">$Avatar$</a></div></td>
		<td width="200" valign="top"><div class="Blue14BU"><a href="/$MemberNo$.htm">$NickName$</a></div>
		<div>$Age$ $Gender$ $C0003$ $Nationality$</div>
		<div class="Orange10">$Online$</div></td>
		<td valign="top">$C0009$: $City$ $Country$
            <br />$C0005$: <strong>$MotherTongue$ $MotherTongue2$ $MotherTongue3$ $MotherTongue4$</strong>
            <br />$C0007$: <strong>$TargetLanguage$ $TargetLanguage2$ $TargetLanguage3$ $TargetLanguage4$</strong>
            <br />$Avatar_title$</td>
	</tr>
	</table>
</div>
<div id="MemberTemple2" style="display: none;">   
	<div style="float:left; width:120px; margin-bottom:10px">
		<div class="Pic90" style="width:92px; margin:0 auto"><a class="photo_90" href="/$MemberNo$.htm">$Avatar$</a></div>
		<div style="text-align:center"><a href="/$MemberNo$.htm">$NickName$</a></div>            
    </div>   
</div>
<select id="selLang" style="display: none"><%=GetLanguageSelect("")%></select>
<select id="jselCountry" style="display: none"><%=GetCountrySelect("")%></select> 
<asp:Literal ID="litScript" runat="server" />
<script>
var memberLearn = "<%=memberInfo.TargetLanguage %>";
var memberSpeak = "<%=memberInfo.MotherTongue %>";
var learnVal="<%=learnValc %>";
var speakVal="<%=speakValc %>";
var nationVal="<%=nationValc %>";
var maxAgeVal="<%=maxAgeValc %>";
var minAgeVal="<%=minAgeValc %>";
var genderVal="<%=genderValc %>";
var cityVal="";
var isAvatarVal=<%=isAvatarValc %>==1 ? true:false;
var isChatNowVal=<%=isChatNowValc %>==1 ? true:false;
$get("selAge").value=minAgeVal+"-"+maxAgeVal;
$get("selGender").value=genderVal;
</script>
